<?php include_once 'layout/heard.php'?>
<body style="padding:0px;" >
<div class="content register_top">
	<div class="pic"><img src="webroot/riders/images/register_pic.png"></div>
</div>

<div class="content" id="r">
	<div class="register">
    	<form action="" method="get">
        	<div class="box box_border">
        		<span class="sjh_ico"></span>
        		<input name="tel" type="tel" class="text text1" placeholder="请输入手机号码">
        	</div>
            <div class="box box_border">
            	<span class="sjh_yzm"></span>
              <input class="text text2" name="check" type="tel" placeholder="请输入短信验证码">
                <a class="yzm" href="#"  id="bnt_yzm" onclick="djs(this)" disabled="disabled">免费获取验证码</a>
        	</div>
            <div class="box">
            	<label class="zcxy hov">已阅读并同意 <a href="?md=riders&cl=riders&at=protocol">元祖食品骑手协议</a></label>
        	</div>
            <div class="box"><a class="bnt_ljzc" href="#">登陆/注册元祖骑手</a></div>
        </form>
    </div>
</div>
<div id="QRCode" class="content" style="display: none">
    <div class="register" style="text-align: center">
        <h2 style="font-weight: 600">请使用微信扫描二维码登陆</h2>
        <img src="?md=riders&cl=riders&at=curl_wx" alt="">
    </div>
</div>
<?php include_once 'layout/rfooter.php'?>
<script>
    var QRCode = '<?php echo $QRCode;?>';
    $(function(){
        var useragent = navigator.userAgent;
        if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
            alert('已禁止本次访问：您必须使用微信内置浏览器访问本页面！');
            $("#r").hide();
            $("#QRCode").show();
            // var opened = window.open('about:blank', '_self');
            // opened.opener = null;
            // opened.close();
        }
    })

</script>